﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sbook.Data;
using Sbook.Business;
using Sbook.Library;
namespace Sbook.Control.Menu
{
    public partial class MenuTop : System.Web.UI.UserControl
    {
        protected string User = "";
        protected string Url = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            
                if (Data.Mysession.isLogin)
                {
                    User = "Xin chào: " + Data.Mysession.Session.Username;
                    Url = "UpdateUser.aspx?Id="+Data.Mysession.Session.UId;
                    //lbt_Logout.Visible = true;
                }
                else
                {
                    User = "Đăng nhập";
                    Url = "#";
                    //lbt_Logout.Visible = false;
                }
            
        }
    }
}